package com.chengzhi.web.feign;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 *
 * @description
 * @param
 * @author RCZ
 * @create 2018-01-10 21:31
 *  @FeignClient(configguration=DisableHystrixConfiguration.class)  实现当前服务禁用Hystrix的支持
 */
@FeignClient(name = "service",fallback = HelloFeignHystrixFallback.class)
public interface HelloFeign {
    //getMapping 不支持  使用@PathVariable("")需要设置值
    @RequestMapping("/hello/query")
    public String helloWorld();
}